using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TankWars.Items
{
    public class MissileItem : Item
    {
        public MissileItem(Texture2D itemTexture, Vector2 position)
        {
            base.Sprite = itemTexture;
            base.vPosition = position;

            base.boundingCircle = new BoundingSphere(new Vector3(vPosition, 0), itemTexture.Width / 2);
        }

        /// <summary>
        /// Changes the input tank's primary weapon to a missile
        /// </summary>
        /// <param name="tank"></param>
        public override void ExecuteAction(Tank tank)
        {
            tank.WeaponManager.PrimaryShotType = typeof(Weapons.Missile);
        }
    }
}
